
*Set up directories

*Path to where the replication package is located 
global path ""


*Path to folders where tables and figures are saved 
global graphs ""
global tables ""


*Path to working directory and personal computer 
cd ""
global home ""

////////////////
*Industry level analysis
////////////////

do "$path/industry_prep.do"
*Prepares the datasets for industry-level analysis.

do "$path/industry_analysis.do"
*Creates Tables 2 and 3. 

do "$path/figure_1.do" 
*Creates Figure 1.

do "$path/industry_DDD_prep.do"
*Prepares the datasets for industry-level analysis in Finland and Norway.

do "$path/industry_DDD.do"
*Creates Figures 2, 3 and Table 4

do "$path/bargraph.do"
*Creates the descriptive bargraph figure A.1.

do "$path/industry_edu_figure.do"
*Creates descriptive figure of industry skills A.2. 

do "$path/trade_table.do"
*Creates later trade table A.5

do "$path/productivity_table.do"
*Creates productivity  table A.6

do "$path/industry_robust_table.do"
*Creates industry robustness tables D.1-D.6

do "$path/heterogeneity_industry.do" 
*Creates industry robustness table D.7

do "$path/skill_hetero_industry_pic.do"
*Creates industry skill heterogeneity figures D.1-D.2

do "$path/industry_flexible_robust.do"
*Creates figure D.3 of different specifications

do "$path/robust_event_nest.do"
*Creates event studies without established sectors figure D.4

do "$path/hs_ls_flexible.do"
*Creates event study by skill intensity figure D.5

do "$path/high_low_flexible_figure.do"
*Creates above median event study figures D.6-D.7


////////////////
*Local level analysis
////////////////

do "$path/muni_analysis.do"
*Create Table 6 and Figure 5.
*Within the file runs occupational_structure.do
*Also creates robustness tables D.8-D.10

do "$path/muni_ddd.do"
*Create Table 7

do "$path/map_exposure.do"
*Create map Figure 4

do "$path/capital_muni.do"
*Create Table A.3 

do "$path/muni_heterogeneity.do"
*Create Panel A of Table D.19

do "$path/clear_temporary.do"
*Clear temprorary files
